package com.alibaba.dingtalk.openapi.newmessage.entity;/*/*/

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 图片消息
 * @author 魏荣杰
 * @date 2019/3/21 15:53
 * @since v1.0
 * @version v1.0
 */
@Setter
@Getter
@ToString
public class Image extends AbstractMessage{
    private static final long serialVersionUID = -1812264729733093638L;
    /**
     * 媒体文件id，可以通过媒体文件接口上传图片获取。建议宽600像素 x 400像素，宽高比3 : 2
     */
    @JSONField(name = "media_id")
    private String mediaId;

    @Override
    public String type() {
        return "image";
    }
}
